﻿using System;
using System.Collections.Generic;
using System.Text;

namespace APP.QUANLY.Common
{
    public class SoftLicence
    {
        //private string _Server;
        //private string _Database;
        //private string _User;
        //private string _Pass;
        private string _SerialKey;
        private string _LicenceKey;
        private bool _IsDemo;
        private DateTime _DtBegin;
        private int _Count;

        //public string Server
        //{
        //    get { return _Server; }
        //    set { _Server = value; }
        //}

        //public string Database
        //{
        //    get { return _Database; }
        //    set { _Database = value; }
        //}
        //public string User
        //{
        //    get { return _User; }
        //    set { _User = value; }
        //}
        //public string Pass
        //{
        //    get { return _Pass; }
        //    set { _Pass = value; }
        //}
        public string SerialKey
        {
            get { return _SerialKey; }
            set { _SerialKey = value; }
        }
        public string LicenceKey
        {
            get { return _LicenceKey; }
            set { _LicenceKey = value; }
        }
        public bool IsDemo
        {
            get { return _IsDemo; }
            set { _IsDemo = value; }
        }
        public DateTime DtBegin
        {
            get { return _DtBegin; }
            set { _DtBegin = value; }
        }
        public Int32 Count
        {
            get { return _Count; }
            set { _Count = value; }
        }

        public SoftLicence()
        {
            //new SoftLicence(Server, Database, User, Pass, SerialKey, LicenceKey, IsDemo, DtBegin, Count);
            new SoftLicence(SerialKey, LicenceKey, IsDemo, DtBegin, Count);
        }

        public SoftLicence(string SerialKey, string LicenceKey, bool IsDemo, DateTime dtBegin, int Count)
        {
            
        }
        
        ~SoftLicence()
        {
            
        }
    }
}
